home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / intrlib1.zip / MAKEFILE.TC < prev    next >
Text File  |  1992-02-24  |  2KB  |  102 lines

  1. #
  2. # This is the make file for the intr_lib - interaction library.
  3. # In order to run it t/bcc is assumed to be available, in addition to
  4. # tlib and obviously borland make.
  5. #
  6. #                Gershon Elber, Nov 1990
  7. #
  8.  
  9.  
  10. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  11. .SWAP
  12.  
  13. # Your C compiler and linker
  14. CC = bcc
  15. LNK = tlink
  16.  
  17. # Where all the include files are:
  18. INC = -I. -Ic:\bc\myinclude
  19.  
  20. #
  21. # CC non debug flags
  22. #
  23. # flags for BC++ 2.0
  24. # CFLAGS = -ml -a- -ff -G -O -r -c -d -w -v- -y- -N- -k-
  25. # LFLAGS = /x/c
  26. #
  27. # flags for BC++ 3.0
  28. CFLAGS = -ml -a- -f -G- -O1 -r -c -d -w -v- -y- -N- -k-
  29. LFLAGS = /x/c
  30.  
  31. #
  32. # CC debug flags
  33. #
  34. # CFLAGS = -ml -c -a- -f -d -w -v -y -k -N
  35. # LFLAGS = /v/c
  36.  
  37. #
  38. # Libs to link with
  39. #
  40. LIBS =  c:\bc\lib\graphics.lib c:\bc\lib\emu.lib \
  41.     c:\bc\lib\mathl.lib c:\bc\lib\cl.lib
  42.  
  43. #
  44. # Where library and Header files should go to.
  45. #
  46. LDEST = c:\bc\mylib
  47. HDEST = c:\bc\myinclud
  48.  
  49.  
  50. OBJS =    cursor.obj ems.obj input.obj intr_gen.obj intr_bgi.obj \
  51.     messages.obj mousedrv.obj pd_menus.obj pu_menus.obj \
  52.     pu_query.obj saveimag.obj slct_clr.obj textwndw.obj window.obj
  53.  
  54. # Show me better way if you know one to prepare this line for TLIB:
  55. POBJS = +cursor.obj +ems.obj +input.obj +intr_gen.obj +intr_bgi.obj \
  56.      +messages.obj +mousedrv.obj +pd_menus.obj +pu_menus.obj \
  57.     +pu_query.obj +saveimag.obj +slct_clr.obj +textwndw.obj +window.obj
  58.  
  59. # The {$< } is also new to TC++ 1.0 make - remove the { } pair if your make
  60. # choke on them (the { } signals batch mode that combines few operation at the
  61. # same time - very nice feature!).
  62. .c.obj:
  63.     $(CC) $(INC) $(CFLAGS) {$< }
  64.  
  65. intr_lib.lib: $(OBJS)
  66.     del intr_lib.lib
  67.     tlib intr_lib.lib @&&!
  68. $(POBJS), intr_lib.lst
  69. !
  70.  
  71. install: intr_lib.lib
  72.     copy intr_lib.lib $(LDEST)
  73.     copy intr_gr.h $(HDEST)
  74.     copy intr_lib.h $(HDEST)
  75.  
  76. intrtest.exe:  $(OBJS) intrtest.obj
  77.     $(LNK) @&&!
  78. c:\bc\lib\c0l+
  79. $(OBJS) intrtest.obj
  80. intrtest.exe
  81. intrtest.map
  82. $(LIBS)
  83. !$(LFLAGS)
  84.  
  85.  
  86. cursor.c:    intr_loc.h intr_gr.h
  87. input.c:    intr_loc.h intr_gr.h
  88. intr_gen.c:    intr_loc.h intr_gr.h
  89. intr_bgi.c:    intr_loc.h intr_gr.h
  90. messages.c:    intr_loc.h intr_gr.h
  91. mousedrv.c:    mousedrv.h
  92. pd_menus.c:    intr_loc.h intr_gr.h
  93. pu_menus.c:    intr_loc.h intr_gr.h
  94. pu_query.c:    intr_loc.h intr_gr.h
  95. saveimag.c:    intr_loc.h intr_gr.h
  96. slct_clr.c:    intr_loc.h intr_gr.h
  97. textwndw.c:    intr_loc.h intr_gr.h
  98. window.c:    intr_loc.h intr_gr.h
  99.  
  100.  
  101. intrtest.c:    intr_lib.h intr_gr.h
  102.